package com.corona.game;

import com.corona.Game;

/* compiled from: Action.java */
/* loaded from: pokewilds.jar:com/pkmngen/game/RemoveDisplayText.class */
class RemoveDisplayText extends Action {
    public RemoveDisplayText(Action nextAction) {
        super(new Object[0]);
        this.nextAction = nextAction;
    }

    @Override // com.corona.game.Action
    public void step(Game game) {
        game.actionStack.remove(game.displayTextAction);
        game.displayTextAction = null;
        game.actionStack.remove(this);
        game.insertAction(this.nextAction);
    }
}
